<%@ page language="java" pageEncoding="UTF-8"%><%@ include
	file="/WEB-INF/commons/taglibs.jsp"%>
<script src="http://www.mathjax.org/mathjax/MathJax.js">
MathJax.Hub.Config({
	extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
	jax: ["input/TeX","output/HTML-CSS"],
	tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]],ignoreClass:"ignoreMath"}
});
</script>
<table>
	<tr>
		<td>
		<div id="classify">
		<ul>
			<c:forEach var="e" items="${it.topics}">
				<li><a href="<c:url value="/search?topic=${e.name}"/>"><b>${e.name}&nbsp;(${fn:length(e.problems)})</b></a>
				<ul>
					<c:forEach var="child" items="${e.children}">
						<li><a href="<c:url value="/search?topic=${child}"/>">${child}</a></li>
					</c:forEach>
				</ul>
				</li>
			</c:forEach>
		</ul>
		</div>
		</td>
		<td>
		<div id="menu">
		<form name="searchForm" method="GET" action="<c:url value="search"/>"
			class="searchForm"><c:if test="${not empty param.topic}">&nbsp;&nbsp;Topic&nbsp;<b>${param.topic}</b>,</c:if>&nbsp;Keyword&nbsp;<input
			id="key" type="text" name="key" value="${param.key}" /><input
			type="submit" value="Find" />&nbsp;&nbsp;<a
			href="<c:url value="/problem/crtOrEdit?back="/><%=request.getQueryString()%>">Create&nbsp;Problem</a></form>
		</div>
		<c:set var="problems" value="${it.problems}" scope="request" /><display:table
			id="e" name="problems" pagesize="20" requestURI="/search"
			htmlId="problems">
			<display:column title="Id" style="width:30px;text-align:center;">
				<a
					href="<c:url value="/problem/crtOrEdit?id=${e.id}&back="/><%=request.getQueryString()%>">${e.id}</a>
			</display:column>
			<display:column property="topics" style="width:200px" />
			<display:column title="Problem" class="ignoreMath"
				style="width:400px;">${e.problem.value}</display:column>
			<display:column title="Formula" property="problemHTML"
				style="width:320px;" />
		</display:table></td>
	</tr>
</table>


